<!DOCTYPE html>
<HTML>
<HEAD>
    <TITLE>分销关系</title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="/res/plugins/ztreev3/css/demo.css" type="text/css">
    <link rel="stylesheet" href="/res/plugins/ztreev3/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="/res/plugins/ztreev3/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="/res/plugins/ztreev3/js/jquery.ztree.core.js"></script>
    <!--<script type="text/javascript" src="/res/plugins/ztreev3/js/jquery.ztree.excheck.js"></script>
    <script type="text/javascript" src="/res/plugins/ztreev3/js/jquery.ztree.exedit.js"></script>-->
    <SCRIPT type="text/javascript">
        <!--
        var setting = {
            async: {
                enable: true,
                url:"/mall/admin/businessmember/fxtreenode?pid=${m.id!}",
                autoParam:["id", "name=n", "level=lv"],
                otherParam:{"otherParam":"zTreeAsyncTest"},
                dataFilter: filter
            }
        };

        function filter(treeId, parentNode, childNodes) {
            if (!childNodes) return null;
            for (var i=0, l=childNodes.length; i<l; i++) {
                childNodes[i].name = childNodes[i].name.replace(/\.n/g, '.');
            }
            return childNodes;
        }

        $(document).ready(function(){
            $.fn.zTree.init($("#treeDemo"), setting);
        });
        //-->
    </SCRIPT>

</HEAD>

<BODY>
        <ul id="treeDemo" class="ztree"></ul>
</BODY>
</HTML>